package Duotai;

public class Changfangxing extends TuPet {
	double d, e;

	public Changfangxing(double d, double e) {
		this.d = d;
		this.e = e;
	}

	@Override
	public double zhouchang() {
		double zhouchang = 2 * (d + e);
		return zhouchang;
	}

	@Override
	public double mianji() {
		double mianji = d * e;
		return mianji;
	}

}
